package com.example.administrator.pandanotes;

import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by 于博 on 2018-07-13.
 * Books(书籍)类，具有以下属性及对应的get、set方法
 * 书籍ISBN
 * 书籍名
 * 作者
 * 出版社
 * 书籍封皮
 * 书籍类名,外键冗余
 */
public class Books extends DataSupport implements Serializable {
    private String book_ISBN;  //书籍ISBN
    private String book_name;  //书籍名
    private String book_author;//作者
    private String book_press; //出版社
    private int book_imageId;  //书籍封皮
    private String class_name; //书籍类名,外键冗余
    private List<Note> notes = new ArrayList<Note>(); //和笔记一对多
    public Books(String book_name,int imageId)
    {
        this.book_name=book_name;
        this.book_imageId = imageId;
    }

    public String getBook_author() {
        return book_author;
    }

    public String getBook_ISBN() {
        return book_ISBN;
    }

    public String getBook_name() {
        return book_name;
    }

    public String getBook_press() {
        return book_press;
    }

    public int getBook_imageId() {
        return book_imageId;
    }

    public String getClass_name() {
        return class_name;
    }

    public List<Note> getNotes() {
        return notes;
    }

    public void setBook_author(String book_author) {
        this.book_author = book_author;
    }

    public void setBook_ISBN(String book_ISBN) {
        this.book_ISBN = book_ISBN;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public void setBook_press(String book_press) {
        this.book_press = book_press;
    }

    public void setBook_imageId(int book_imageId) {
        this.book_imageId = book_imageId;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public void setNotes(List<Note> notes) {
        this.notes = notes;
    }
}
